package com.wnh.demo.user.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * InnoDB free: 13312 kB
 * </p>
 *
 * @author wangnenghui
 * @since 2020-07-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
//@TableName("tb_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type=IdType.AUTO)
    private Integer id;
    @TableField("passWord")
    private String passWord;

    @TableField("userName")
    private String userName;

    @TableField(value="realName",condition=SqlCondition.LIKE)
    private String realName;
    
    @TableField(exist=false)//数据表中无此属性，忽略掉
    private String remark;
    
    private Integer age;
    
    private String status;
    private Date createTime;


}
